package top.springcloud.order;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @EnableEurekaClient注解是基于spring-cloud-netflix依赖，只能eureka使用
 * @EnableDiscoveryClient注解是基于spring-cloud-commons依赖，并且在classpath中实现
 * Eureka 服务提供者
 */
@EnableTransactionManagement
@EnableEurekaClient
@SpringBootApplication
@MapperScan("top.springcloud.order.mapper")
public class EurekaOrderApplication {
    public static void main(String[] args){
        SpringApplication.run(EurekaOrderApplication.class,args);
    }
}
